package org.logMonitor.service.impl;

import org.logMonitor.dao.RecordDao;
import org.logMonitor.entity.Record;
import org.logMonitor.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2018/2/10.
 */
@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private  RecordDao recordDao;
    public List<Record> getRecordByIdSrcip(int ruleId, String src_ip, int offset, int limit) {
        return recordDao.getRecordByIdSrcip(ruleId,src_ip,offset,limit);
    }

    public List<Record> getRecordByIdDstip(int ruleId, String dst_ip, int offset, int limit) {
        return recordDao.getRecordByIdDstip(ruleId,dst_ip,offset,limit);
    }
}
